package com.ruoyi.system.domain;


import com.ruoyi.common.core.domain.BaseEntity;

/**
 * @author renzhihao
 * @date 2023/10/12 14:52
 */
public class SysAuth extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 认证源ID
     */
    private Long authId;

    /**
     * 认证源类型
     */
    private String type;

    /**
     * 认证源名称
     */
    private String authName;

    /**
     * 认证源状态
     */
    private Integer status;

    /**
     * 是否是初始化
     */
    private Integer initial;

    /**
     * 登出地址
     */
    private String logoutUrl;

    /**
     * client_name
     */
    private String clientName;

    /**
     * 认证地址
     */
    private String authUrl;

    /**
     * 回调地址
     */
    private String callbackUrl;

    /**
     * 获取token地址
     */
    private String tokenUrl;

    /**
     * 获取用户信息地址
     */
    private String profileUrl;

    /**
     * 用户账号字段
     */
    private String profileId;

    /**
     * 用户信息节点路径
     */
    private String profilePath;

    /**
     * 用户信息请求方式
     */
    private String profileVerb;

    /**
     * 获取token参数位置 param/body
     */
    private String tokenParamPosition;

    /**
     * client_id
     */
    private String clientId;

    /**
     * client_secret
     */
    private String clientSecret;

    /**
     * well_known地址
     */
    private String wellKnown;

    /**
     * 范围
     */
    private String scope;

    /**
     * entity_id
     */
    private String entityId;

    /**
     * 元数据地址
     */
    private String metadataPath;

    /**
     * 元数据文件名
     */
    private String metadataFilename;


    /**
     * 密钥库id
     */
    private Long keystoreId;

    /**
     * 是否禁用签名校验
     */
    private String allSignatureValidationDisabled;

    /**
     * 向idp发起认证请求时加签
     */
    private String authnRequestSigned;

    /**
     * 向idp发起登出请求时加签
     */
    private String spLogoutRequestSigned;

    /**
     * 要求idp下发凭据加签
     */
    private String wantsAssertionsSigned;

    /**
     * 要求idp响应信息加签
     */
    private String wantsResponsesSigned;

    /**
     * 加签密钥
     */
    private String signatureKey;

    /**
     * 加密密钥
     */
    private String encryptionKey;

    /**
     * 成功跳转地址
     */
    private String successRedirectUrl;


    /**
     * 访问地址
     */
    private String localServer;

    /**
     * 排序
     */
    private Long sort;

    public Long getAuthId() {
        return authId;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getInitial() {
        return initial;
    }

    public void setInitial(Integer initial) {
        this.initial = initial;
    }

    public String getLogoutUrl() {
        return logoutUrl;
    }

    public void setLogoutUrl(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getAuthUrl() {
        return authUrl;
    }

    public void setAuthUrl(String authUrl) {
        this.authUrl = authUrl;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    public String getProfileUrl() {
        return profileUrl;
    }

    public void setProfileUrl(String profileUrl) {
        this.profileUrl = profileUrl;
    }

    public String getProfileId() {
        return profileId;
    }

    public void setProfileId(String profileId) {
        this.profileId = profileId;
    }

    public String getProfilePath() {
        return profilePath;
    }

    public void setProfilePath(String profilePath) {
        this.profilePath = profilePath;
    }

    public String getProfileVerb() {
        return profileVerb;
    }

    public void setProfileVerb(String profileVerb) {
        this.profileVerb = profileVerb;
    }

    public String getTokenParamPosition() {
        return tokenParamPosition;
    }

    public void setTokenParamPosition(String tokenParamPosition) {
        this.tokenParamPosition = tokenParamPosition;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getWellKnown() {
        return wellKnown;
    }

    public void setWellKnown(String wellKnown) {
        this.wellKnown = wellKnown;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId;
    }

    public String getMetadataPath() {
        return metadataPath;
    }

    public void setMetadataPath(String metadataPath) {
        this.metadataPath = metadataPath;
    }

    public String getMetadataFilename() {
        return metadataFilename;
    }

    public void setMetadataFilename(String metadataFilename) {
        this.metadataFilename = metadataFilename;
    }

    public Long getKeystoreId() {
        return keystoreId;
    }

    public void setKeystoreId(Long keystoreId) {
        this.keystoreId = keystoreId;
    }

    public String getAllSignatureValidationDisabled() {
        return allSignatureValidationDisabled;
    }

    public void setAllSignatureValidationDisabled(String allSignatureValidationDisabled) {
        this.allSignatureValidationDisabled = allSignatureValidationDisabled;
    }

    public String getAuthnRequestSigned() {
        return authnRequestSigned;
    }

    public void setAuthnRequestSigned(String authnRequestSigned) {
        this.authnRequestSigned = authnRequestSigned;
    }

    public String getSpLogoutRequestSigned() {
        return spLogoutRequestSigned;
    }

    public void setSpLogoutRequestSigned(String spLogoutRequestSigned) {
        this.spLogoutRequestSigned = spLogoutRequestSigned;
    }

    public String getWantsAssertionsSigned() {
        return wantsAssertionsSigned;
    }

    public void setWantsAssertionsSigned(String wantsAssertionsSigned) {
        this.wantsAssertionsSigned = wantsAssertionsSigned;
    }

    public String getWantsResponsesSigned() {
        return wantsResponsesSigned;
    }

    public void setWantsResponsesSigned(String wantsResponsesSigned) {
        this.wantsResponsesSigned = wantsResponsesSigned;
    }

    public String getSignatureKey() {
        return signatureKey;
    }

    public void setSignatureKey(String signatureKey) {
        this.signatureKey = signatureKey;
    }

    public String getEncryptionKey() {
        return encryptionKey;
    }

    public void setEncryptionKey(String encryptionKey) {
        this.encryptionKey = encryptionKey;
    }

    public String getSuccessRedirectUrl() {
        return successRedirectUrl;
    }

    public void setSuccessRedirectUrl(String successRedirectUrl) {
        this.successRedirectUrl = successRedirectUrl;
    }

    public String getLocalServer() {
        return localServer;
    }

    public void setLocalServer(String localServer) {
        this.localServer = localServer;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }


    @Override
    public String toString() {
        return "SysAuth{" +
                "authId=" + authId +
                ", type='" + type + '\'' +
                ", authName='" + authName + '\'' +
                ", status=" + status +
                ", initial=" + initial +
                ", logoutUrl='" + logoutUrl + '\'' +
                ", clientName='" + clientName + '\'' +
                ", authUrl='" + authUrl + '\'' +
                ", callbackUrl='" + callbackUrl + '\'' +
                ", tokenUrl='" + tokenUrl + '\'' +
                ", profileUrl='" + profileUrl + '\'' +
                ", profileId='" + profileId + '\'' +
                ", profilePath='" + profilePath + '\'' +
                ", profileVerb='" + profileVerb + '\'' +
                ", tokenParamPosition='" + tokenParamPosition + '\'' +
                ", clientId='" + clientId + '\'' +
                ", clientSecret='" + clientSecret + '\'' +
                ", wellKnown='" + wellKnown + '\'' +
                ", scope='" + scope + '\'' +
                ", entityId='" + entityId + '\'' +
                ", metadataPath='" + metadataPath + '\'' +
                ", metadataFilename='" + metadataFilename + '\'' +
                ", keystoreId='" + keystoreId + '\'' +
                ", allSignatureValidationDisabled=" + allSignatureValidationDisabled +
                ", authnRequestSigned=" + authnRequestSigned +
                ", spLogoutRequestSigned=" + spLogoutRequestSigned +
                ", wantsAssertionsSigned=" + wantsAssertionsSigned +
                ", wantsResponsesSigned=" + wantsResponsesSigned +
                ", signatureKey='" + signatureKey + '\'' +
                ", encryptionKey='" + encryptionKey + '\'' +
                ", successRedirectUrl='" + successRedirectUrl + '\'' +
                ", localServer='" + localServer + '\'' +
                ", sort=" + sort +
                '}';
    }
}
